﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BD2MKV
{
    public partial class FormFTP : Form
    {
        public string ftpServer = null;
        public string ftpUserName = null;
        public string ftpPWD = null;
        public string ftpDir = null;

        public FormFTP()
        {
            InitializeComponent();

             textBoxFTPDir.Text = BDMuxSettings.FTPDir;
             textBoxFTPServer.Text = BDMuxSettings.FTPServer;
             textBoxUser.Text = BDMuxSettings.FTPUser;
             textBoxFTPPwd.Text = BDMuxSettings.FTPPWD;
        }

        private void FormFTP_Load(object sender, EventArgs e)
        {

        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            ftpServer = textBoxFTPServer.Text;
            ftpUserName = textBoxUser.Text;
            ftpPWD = textBoxFTPPwd.Text;
            ftpDir = textBoxFTPDir.Text;
            BDMuxSettings.FTPDir = textBoxFTPDir.Text;
            BDMuxSettings.FTPServer = textBoxFTPServer.Text;
            BDMuxSettings.FTPUser = textBoxUser.Text;
            BDMuxSettings.FTPPWD = textBoxFTPPwd.Text;
            BDMuxSettings.SaveSettings();
            
        }
    }
}
